﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Pages/Private/SiteAdmin.Master" AutoEventWireup="true" CodeBehind="AdForm.aspx.cs" Inherits="Obligatorio2013.Pages.Private.AdForm" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">


    <asp:Panel ID="Panel1" GroupingText="Nuevo Aviso" runat="server">
    <br />
        <asp:Label ID="Label1" runat="server" Text="Tipo Aviso" Width="100px"/>
        <asp:DropDownList ID="DropDownList1" runat="server" Width="100px"/>
    <br />
    <br />
        <asp:Label ID="lblTitle" runat="server" Text="Titulo" Width="100px"/>
        <asp:TextBox ID="txtTitle" runat="server" Width="250px"/>
         <asp:RequiredFieldValidator ID="nameValidator" runat="server" Display="Dynamic" ControlToValidate="txtTitle"
           ErrorMessage="Titulo es un campo requerido">*</asp:RequiredFieldValidator>
    <br />
    <br />
        <asp:Label ID="lblDescription" runat="server" Text="Descripcion" Width="100px"/>
        <asp:TextBox ID="txtDescription" runat="server" TextMode="MultiLine" Width="250px"/>
        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" Display="Dynamic" 
        ControlToValidate="txtDescription"
           ErrorMessage="Descipcion es un campo requerido">*</asp:RequiredFieldValidator>
    <br />
    <br />
        
         <div style="width: 462px">    
           <asp:Label ID="lblImage" runat="server" Text="Ingrese Imagen" Width="100px"/> 
             <asp:FileUpload ID="adImage" runat="server" Width="250px"/>
            <asp:Image ID="adImageView" runat="server" />
        </div>
    <br />
    <br />
            <asp:ScriptManager ID="ScriptManager1" runat="server" />
        <asp:Label ID="Label5" runat="server" Text="Fecha Desde" Width="100px"/>
        <asp:TextBox ID="dateFrom" runat="server" Width="100px" />
        <ajaxToolkit:CalendarExtender ID="calendarFrom" runat="server" TargetControlID="dateFrom"
            CssClass="ClassName" PopupPosition="BottomRight" Format="MMMM d, yyyy" PopupButtonID="Image1"/>
            
            <asp:CustomValidator id="CustomValidator1" runat="server" 
              OnServerValidate="DateValidate" 
              ControlToValidate="dateFrom" 
              ErrorMessage="La fecha es un campo requerido.">
            </asp:CustomValidator>


        <asp:Label ID="Label2" runat="server" Text="Fecha Hasta" Width="100px"/>
        <asp:TextBox ID="dateTo" runat="server" Width="100px" />
        <ajaxToolkit:CalendarExtender ID="calendarTo" runat="server" TargetControlID="dateTo" 
            CssClass="ClassName" PopupPosition="BottomRight" Format="MMMM d, yyyy" PopupButtonID="Image1" />
             <asp:CustomValidator id="CustomValidator2" runat="server" 
              OnServerValidate="DateValidate" 
              ControlToValidate="dateTo" 
              ErrorMessage="La fecha es un campo requerido.">
            </asp:CustomValidator>
        <br />
    <br />
    <br />
    <br />
        <asp:Label ID="lblContact" runat="server" Text="Contacto" Width="100px"/>
        <asp:TextBox ID="txtContact" runat="server" Width="250px"/>
         <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" Display="Dynamic" 
        ControlToValidate="txtContact"
           ErrorMessage="Fecha es un campo requerido">*</asp:RequiredFieldValidator>
    <br />
    <br />
        <asp:Label ID="lblPhoneContact" runat="server" Text="Telefono" Width="100px"/>
        <asp:TextBox ID="txtPhone" runat="server" Width="100px"/>
    <br />

        <asp:Panel ID="Panel2" GroupingText="Calcular Prcio" runat="server" 
            Width="223px">
            <asp:Label ID="lblCost" runat="server" Text="Precio " Width="100px"/>
             <asp:TextBox ID="txtCost" runat="server" Width="100px" ReadOnly="true"/>
            <br />
            <br />
        <asp:Button ID="btnCalculate" runat="server" Text="Calcular" 
                onclick="btnCalculate_Click" Width="100px"/>            
        <br />
        </asp:Panel>

            <br />
        <asp:Button ID="btnSave" runat="server"  Text="Publicar" 
            onclick="btnSave_Click" />
        &nbsp;
        <asp:Button ID="btnCancel" runat="server" Text="Cancelar" 
            CausesValidation="false" onclick="btnCancel_Click"
             />
        <br />
    </asp:Panel>
</asp:Content>
